export const CategoryData = [
  {
    id: 1,
    txt: '玩具',
    icon: require('../icon/menu1.png'),
    reverse: false,
  },
  {
    id: 2,
    txt: '电子产品',
    icon: require('../icon/menu2.png'),
    reverse: false,
  },
  {
    id: 3,
    txt: '文具',
    icon: require('../icon/menu3.png'),
    reverse: false,
  },
  {
    id: 4,
    txt: '体育',
    icon: require('../icon/menu4.png'),
    reverse: false,
  },
  {
    id: 5,
    txt: '服饰',
    icon: require('../icon/menu5.png'),
    reverse: true,
  },
  {
    id: 6,
    txt: '书籍',
    icon: require('../icon/menu6.png'),
    reverse: true,
  },
  {
    id: 7,
    txt: '折扣',
    icon: require('../icon/menu7.png'),
    reverse: true,
  },
  {
    id: 8,
    txt: '更多',
    icon: require('../icon/menu8.png'),
    reverse: true,
  },
]
export const subCategory = [
  { pid: 1, id: 11, txt: '乐高' },
  { pid: 1, id: 12, txt: '手办' },
  { pid: 1, id: 13, txt: '卡牌' },
  { pid: 1, id: 14, txt: '芭比娃娃' },
  { pid: 1, id: 15, txt: '毛绒玩具' },
  { pid: 2, id: 21, txt: '电脑' },
  { pid: 2, id: 22, txt: '剃须刀' },
  { pid: 2, id: 23, txt: '手机' },
  { pid: 2, id: 24, txt: '音响' },
  { pid: 2, id: 25, txt: '手表' },
  { pid: 2, id: 26, txt: '钢笔' },
  { pid: 3, id: 31, txt: '铅笔' },
  { pid: 3, id: 32, txt: '画笔' },
  { pid: 3, id: 33, txt: '尺卷' },
  { pid: 3, id: 34, txt: '修正带' },
  { pid: 3, id: 35, txt: '纸张' },
  { pid: 3, id: 36, txt: '本子' },
  { pid: 4, id: 41, txt: '篮球' },
  { pid: 4, id: 42, txt: '棒球' },
  { pid: 4, id: 43, txt: '跳绳' },
  { pid: 4, id: 44, txt: '哑铃' },
  { pid: 4, id: 45, txt: '弹力带' },
  { pid: 4, id: 46, txt: '足球' },
  { pid: 4, id: 47, txt: '羽毛球' },
  { pid: 5, id: 51, txt: 'T恤' },
  { pid: 5, id: 52, txt: 'Polo衫' },
  { pid: 5, id: 53, txt: '工装裤' },
  { pid: 5, id: 54, txt: '风衣' },
  { pid: 5, id: 55, txt: '长袖' },
  { pid: 5, id: 56, txt: '卫衣' },
  { pid: 5, id: 57, txt: '毛衣' },
  { pid: 6, id: 61, txt: '计算机书籍' },
  { pid: 6, id: 62, txt: '最新公务书' },
  { pid: 6, id: 63, txt: '教师的书籍' },
  { pid: 6, id: 64, txt: '土木工程' },
  { pid: 6, id: 65, txt: '现代小说' },
  { pid: 7, id: 71, txt: '电视机' },
  { pid: 7, id: 72, txt: '冰箱' },
  { pid: 7, id: 73, txt: '空调' },
  { pid: 8, id: 81, txt: '水果' },
  { pid: 8, id: 82, txt: '零食' },
  { pid: 8, id: 83, txt: '饮料奶制品' },
  { pid: 8, id: 84, txt: '医药' },
]
export type GoodsDataItem = {
  id: number
  title?: string
  cId?: number
  count?: number
  price: number
  sale: number
  cover?: any
  interDiscount?: number
}
export const GoodsData: GoodsDataItem[] = [
  {
    id: 1,
    title: '1儿童课桌椅',
    cId: 3,
    count: 10,
    price: 1364,
    sale: 12,
    cover: require('../coverImg/card1.png'),
    interDiscount: 0.6,
  },
  {
    id: 2,
    title: '2考试文具套装33',
    cId: 3,
    count: 12,
    price: 42,
    sale: 6,
    cover: require('../coverImg/card2.png'),
    interDiscount: 0.8,
  },
  {
    id: 3,
    title: '3宇航员xx',
    cId: 1,
    count: 14,
    price: 12.8,
    sale: 30,
    cover: require('../coverImg/goods1.png'),
    interDiscount: 0.7,
  },
  {
    id: 4,
    title: '4迪士尼爱莎公主芭比娃娃',
    cId: 3,
    count: 20,
    price: 138.8,
    sale: 2,
    cover: require('../coverImg/goods2.png'),
    interDiscount: 0.3,
  },
  {
    id: 5,
    title: '5水壶',
    cId: 3,
    count: 32,
    price: 22.8,
    sale: 1,
    cover: require('../coverImg/goods3.png'),
  },
  {
    id: 6,
    title: '6儿童课桌椅asd',
    cId: 3,
    count: 40,
    price: 1964,
    sale: 12,
    cover: require('../coverImg/card1.png'),
    interDiscount: 1.0,
  },
  {
    id: 8,
    title: '7宇航员1',
    cId: 1,
    count: 19,
    price: 14.8,
    sale: 30,
    cover: require('../coverImg/goods1.png'),
    interDiscount: 0.2,
  },
  {
    id: 7,
    title: '8考试文具套装',
    cId: 3,
    count: 12,
    price: 32,
    sale: 6,
    cover: require('../coverImg/card2.png'),
  },
  {
    id: 10,
    title: '9水壶-卡通怪兽2',
    cId: 3,
    count: 21,
    price: 23.8,
    sale: 1,
    cover: require('../coverImg/goods3.png'),
  },
  {
    id: 9,
    title: '10迪士尼爱莎公主芭比娃娃娃娃娃娃',
    cId: 3,
    count: 11,
    price: 148.8,
    sale: 2,
    cover: require('../coverImg/goods2.png'),
    interDiscount: 0.3,
  },
]
// export interface CardDataInterface {
//   id: number,
//   title: string,
//   count: number,
//   price: number,
//   cover: any,
//   choosed: boolean,
//   type: string,
// }
export type CardDataInterface = (typeof cartData)[0] & { choosed: boolean }
export const cartData = [
  {
    id: 1,
    title: '儿童课桌椅',
    cId: 3,
    count: 1,
    price: 1964,
    sale: 12,
    type: '粉色款式',
    cover: require('../coverImg/card1.png'),
  },
  {
    id: 2,
    title: '考试文具套装考试文具套装考试文具套装',
    cId: 3,
    count: 1,
    price: 32,
    type: '7件套',
    sale: 6,
    cover: require('../coverImg/card2.png'),
  },
  {
    id: 3,
    title: '宇航员',
    cId: 1,
    count: 1,
    price: 13.8,
    type: '4寸',
    sale: 30,
    cover: require('../coverImg/goods1.png'),
  },
]

export const searchData = [
  '灌篮高手周边',
  '蚊子灭蚊器',
  'new balance',
  '空气进化器',
  '激励学习小物件',
  '黄色潮流T恤',
]
